import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/product/group/list${query}`,
    method: 'get',
  });
}

export function listDetailData(query) {
  return request({
    url: `/product/group/detail/list${query}`,
    method: 'get',
  });
}

export function listTypeData(query) {
    return request({
      url: `/reward/list${query}`,
      method: 'get',
    });
  }

export function listPropData(query) {
  return request({
    url: `/reward/item/list${query}`,
    method: 'get',
  });
}

export function putData(form) {
  return request({
    url: `/product/group/add`,
    method: 'put',
    data:form
  });
}

export function updateData(form) {
  return request({
    url: `/product/group/update`,
    method: 'put',
    data:form
  });
}

export function deleteData(form) {
  return request({
    url: `/product/group/del`,
    method: 'put',
    data:form
  });
}
